how to encrypt decrypt a text file in c